/*
 * @Author: chenbolin@msn.cn
 * @Date: 2023-02-22 17:15:05
 * @LastEditors: chenbolin@msn.cn
 * @LastEditTime: 2023-10-09 14:44:26
 * @FilePath: \mfReceiver\src\App\wireless\Wireless.h
 * @Description:
 *
 * Copyright (c) 2023 by ${git_name_email}, All Rights Reserved.
 */
#ifndef __WIRELESS_H
#define __WIRELESS_H

#define WIRELESS_CHANNEL_COUNT 10

typedef enum
{
    WIRELESS_CMD_REMOTE_DATA = 1,
    WIRELESS_CMD_RECEIVER_DATA
} WirelessCmd_t;

typedef void (*WirelessDataRecv_f)(WirelessCmd_t cmd, unsigned char *data, unsigned short length);

unsigned char WirelessRealtimeChannel(void);
void WirelessConflictDetectInit(void);
void WirelessInit(WirelessDataRecv_f recvHandle);
void WirelessSendData(WirelessCmd_t cmd, unsigned char *data, unsigned short length);
void WirelessPoll(void);

#endif
